<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改红包用户中间')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-hbUser-edit" th:object="${hbUser}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <h4 class="form-header h4"  align="center">红包信息</h4>
			<div class="form-group">	
				<label class="col-sm-2 control-label">用户id：</label>
				<div class="col-sm-3">
					<input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
				</div>
				
				<label class="col-sm-2 control-label">红包id：</label>
				<div class="col-sm-3">
					<input id="hbId" name="hbId" th:field="*{hbId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">红包编号：</label>
				<div class="col-sm-3">
					<input id="bhId" name="bhId" th:field="*{bhId}" class="form-control" type="text">
				</div>
				
				<label class="col-sm-2 control-label">是否永久优惠卷：</label>
				<div class="col-sm-3">										
					<select id="isYj" name="isYj" class="form-control m-b"
						th:field="*{isYj}">
						<option value=""></option>
						<option value=1>是</option>
						<option value=0>否</option>
						
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">过期时间：</label>
				<div class="col-sm-8">
					<input id="gqDate" name="gqDate" th:field="*{gqDate}" class="form-control" type="text" pattern="yyyy-MM-dd HH:mm:ss">
				</div>
			</div>
		
			<div class="form-group">	
				<label class="col-sm-2 control-label">获得时间：</label>
				<div class="col-sm-8">
					<input id="creactDate" name="creactDate" th:field="*{creactDate}" class="form-control" type="text" pattern="yyyy-MM-dd HH:mm:ss">
				</div>
			</div>
			
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "HbUser/hbUser";
		$("#form-hbUser-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-hbUser-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
